﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;

namespace JGame
{
    public class Sprite2D : Object2D
    {
        Image _bitmap;

        public Sprite2D(Image bitmap, Point position)
            : base(bitmap.Size, position)
        {
            _bitmap = bitmap;
        }

        protected override void DrawObject(Graphics graphics)
        {
            graphics.DrawImage(_bitmap, -this.Width / 2, -this.Height / 2, this.Width, this.Height );
        }

        protected override void UpdateObject()
        {
            // TODO
        }
    }
}
